<?php
defined('IN_IA') or exit('Access Denied');
include MODULE_ROOT . '/tbsdk/TopSdk.php';
$appkey = "23218512";
$secret = "e7bb09896caa0e8a7837718befc7243c";
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new WirelessShareTpwdCreateRequest;
$tpwd_param = new IsvTpwdInfo;
$tpwd_param->ext = "";
$tpwd_param->logo = "";
$tpwd_param->text = "超值活动，惊喜活动多多";
$tpwd_param->url = "https://detail.tmall.com/item.htm?id=541452513590&skuId=3250570964381";
$tpwd_param->user_id = "10550887";
$req->setTpwdParam(json_encode($tpwd_param));
$resp = $c->execute($req);
print_r($resp);